<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Duye SDK User Wizard: duye::XmlVisitor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Duye SDK User Wizard
   &#160;<span id="projectnumber">V1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>duye</b></li><li class="navelem"><a class="el" href="classduye_1_1_xml_visitor.html">XmlVisitor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classduye_1_1_xml_visitor-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">duye::XmlVisitor Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implements the interface to the "Visitor pattern" (see the Accept() method.) If you call the Accept() method, it requires being passed a <a class="el" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a> class to handle callbacks. For nodes that contain other nodes (Document, Element) you will get called with a VisitEnter/VisitExit pair. Nodes that are always leaves are simply called with Visit().  
 <a href="classduye_1_1_xml_visitor.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="duye__xml_8h_source.html">duye_xml.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for duye::XmlVisitor:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classduye_1_1_xml_visitor.png" usemap="#duye::XmlVisitor_map" alt=""/>
  <map id="duye::XmlVisitor_map" name="duye::XmlVisitor_map">
<area href="classduye_1_1_xml_printer.html" title="Print to memory functionality. The GXmlPrinter is useful when you need to:" alt="duye::XmlPrinter" shape="rect" coords="0,56,105,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a98f4ec3a62fca202d5ca357249cfc7ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98f4ec3a62fca202d5ca357249cfc7ce"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#a98f4ec3a62fca202d5ca357249cfc7ce">visitEnter</a> (const <a class="el" href="classduye_1_1_xml_document.html">XmlDocument</a> &amp;)</td></tr>
<tr class="memdesc:a98f4ec3a62fca202d5ca357249cfc7ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document. <br/></td></tr>
<tr class="separator:a98f4ec3a62fca202d5ca357249cfc7ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acac3f70e298fb825327d7bf0cfd87651"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acac3f70e298fb825327d7bf0cfd87651"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#acac3f70e298fb825327d7bf0cfd87651">visitExit</a> (const <a class="el" href="classduye_1_1_xml_document.html">XmlDocument</a> &amp;)</td></tr>
<tr class="memdesc:acac3f70e298fb825327d7bf0cfd87651"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document. <br/></td></tr>
<tr class="separator:acac3f70e298fb825327d7bf0cfd87651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b9a0abd70e1724ea4d8d6de512928ce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b9a0abd70e1724ea4d8d6de512928ce"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#a9b9a0abd70e1724ea4d8d6de512928ce">visitEnter</a> (const <a class="el" href="classduye_1_1_xml_element.html">XmlElement</a> &amp;, const <a class="el" href="classduye_1_1_xml_attribute.html">XmlAttribute</a> *)</td></tr>
<tr class="memdesc:a9b9a0abd70e1724ea4d8d6de512928ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element. <br/></td></tr>
<tr class="separator:a9b9a0abd70e1724ea4d8d6de512928ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07f65fb94df4da056b508d8d43b08492"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a07f65fb94df4da056b508d8d43b08492"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#a07f65fb94df4da056b508d8d43b08492">visitExit</a> (const <a class="el" href="classduye_1_1_xml_element.html">XmlElement</a> &amp;)</td></tr>
<tr class="memdesc:a07f65fb94df4da056b508d8d43b08492"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element. <br/></td></tr>
<tr class="separator:a07f65fb94df4da056b508d8d43b08492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a405f40e1300de455fc05712cd98203"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a405f40e1300de455fc05712cd98203"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#a9a405f40e1300de455fc05712cd98203">visit</a> (const <a class="el" href="classduye_1_1_xml_declaration.html">XmlDeclaration</a> &amp;)</td></tr>
<tr class="memdesc:a9a405f40e1300de455fc05712cd98203"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a declaration. <br/></td></tr>
<tr class="separator:a9a405f40e1300de455fc05712cd98203"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5994fbfcbdb289527393e3695e21b3fb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5994fbfcbdb289527393e3695e21b3fb"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#a5994fbfcbdb289527393e3695e21b3fb">visit</a> (const <a class="el" href="classduye_1_1_xml_text.html">XmlText</a> &amp;)</td></tr>
<tr class="memdesc:a5994fbfcbdb289527393e3695e21b3fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a text node. <br/></td></tr>
<tr class="separator:a5994fbfcbdb289527393e3695e21b3fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cef74e4d3a171c1f528225af3fccb80"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3cef74e4d3a171c1f528225af3fccb80"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#a3cef74e4d3a171c1f528225af3fccb80">visit</a> (const <a class="el" href="classduye_1_1_xml_comment.html">XmlComment</a> &amp;)</td></tr>
<tr class="memdesc:a3cef74e4d3a171c1f528225af3fccb80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a comment node. <br/></td></tr>
<tr class="separator:a3cef74e4d3a171c1f528225af3fccb80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59cb2c3a4d18c8d9be51d9c13f0109cf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59cb2c3a4d18c8d9be51d9c13f0109cf"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_xml_visitor.html#a59cb2c3a4d18c8d9be51d9c13f0109cf">visit</a> (const <a class="el" href="classduye_1_1_xml_unknown.html">XmlUnknown</a> &amp;)</td></tr>
<tr class="memdesc:a59cb2c3a4d18c8d9be51d9c13f0109cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an unknown node. <br/></td></tr>
<tr class="separator:a59cb2c3a4d18c8d9be51d9c13f0109cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implements the interface to the "Visitor pattern" (see the Accept() method.) If you call the Accept() method, it requires being passed a <a class="el" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a> class to handle callbacks. For nodes that contain other nodes (Document, Element) you will get called with a VisitEnter/VisitExit pair. Nodes that are always leaves are simply called with Visit(). </p>
<p>If you return 'true' from a Visit method, recursive parsing will continue. If you return false, <b>no children of this node or its sibilings</b> will be Visited.</p>
<p>All flavors of Visit methods have a default implementation that returns 'true' (continue visiting). You need to only override methods that are interesting to you.</p>
<p>Generally Accept() is called on the GXmlDocument, although all nodes suppert Visiting.</p>
<p>You should never change the document from a callback. see XmlNode::Accept() </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>Z:/duye/src/duyebase/utils/<a class="el" href="duye__xml_8h_source.html">duye_xml.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 27 2017 15:19:21 for Duye SDK User Wizard by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>
